<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String path = request.getContextPath()+request.getServletPath().substring(0,request.getServletPath().lastIndexOf("/")+1);
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录</title>
</head>
<script type="text/javascript" src="<%=basePath%>js/jquery-1.8.2.min.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$("#save").click(function(){
			$("#submitForm").submit();
		});
		
		$("#back").click(function(){
			window.location.href="<%=basePath%>article/list";
		});
	});
	
</script>
<body>
<div align="center" style="margin-top:200px;">
<form action="<%=basePath %>article/save" method="post" id="submitForm">
<table align="center" cellspacing="4" cellpadding="4">
	<tr><td align="right">标题：</td><td><input type="text" name="title" id=""title"" value="" size="100"/></td></tr>
	<tr><td align="right" valign="top">内容：</td><td><textarea name="content" id="content" rows="7" cols="87"></textarea></td></tr>
	<tr><td colspan="2" align="center"><input type="button" value="保存" id="save" /><input type="reset" value="清空"><input type="button" value="返回" id="back"></td></tr>
</table>
</form>
</div>
</body>
</html>